﻿<%@ Page Title="Đăng ký thành viên" Language="C#" MasterPageFile="~/MasterPage.master"
    AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" %>

<%@ Register TagPrefix="cc1" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Content" runat="Server">
    <div>
        <div class="tille_content">
            Đăng ký thành viên</div>
        <div class="clear">
        </div>
        <div class="table_center">
            <!-- Main contetn -->
            <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
                <asp:View ID="ViewDangKy" runat="server">
                    <table class="tableCSS" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="t tborder_c">
                                Tên đăng nhập
                            </td>
                            <td class="i tborder_c">
                                <asp:TextBox ID="txtTenDangNhap" CssClass="n" runat="server"></asp:TextBox>&nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="RequiredFieldValidator"
                                    ControlToValidate="txtTenDangNhap" SetFocusOnError="True" ValidationGroup="check">Bạn chưa nhập tên đăng nhập</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="t tborder_c">
                                Mật khẩu
                            </td>
                            <td class="i tborder_c">
                                <asp:TextBox ID="txtMatKhau" CssClass="n" runat="server" TextMode="Password"></asp:TextBox>&nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="RequiredFieldValidator"
                                    ControlToValidate="txtMatKhau" SetFocusOnError="True" ValidationGroup="check">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="t tborder_c">
                                Nhập lại mật khẩu
                            </td>
                            <td class="i tborder_c">
                                <asp:TextBox ID="txtNhapLaiMatKhau" CssClass="n" runat="server" TextMode="Password"></asp:TextBox>&nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="RequiredFieldValidator"
                                    ControlToValidate="txtNhapLaiMatKhau" SetFocusOnError="True" ValidationGroup="check">*</asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="CompareValidator"
                                    ControlToCompare="txtMatKhau" ControlToValidate="txtNhapLaiMatKhau" ValidationGroup="check"
                                    SetFocusOnError="True">Nhập lại mật khẩu chưa đúng</asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="t tborder_c">
                                Họ Tên
                            </td>
                            <td class="i tborder_c">
                                <asp:TextBox ID="txtHoTen" CssClass="n" runat="server"></asp:TextBox>&nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator"
                                    ControlToValidate="txtHoTen" SetFocusOnError="True" ValidationGroup="check">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="t tborder_c">
                                Địa chỉ
                            </td>
                            <td class="i tborder_c">
                                <asp:TextBox ID="txtDiaChi" CssClass="l" runat="server"></asp:TextBox>&nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="RequiredFieldValidator"
                                    SetFocusOnError="True" ControlToValidate="txtDiaChi" ValidationGroup="check">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="t tborder_c">
                                Số điện thoại
                            </td>
                            <td class="i tborder_c">
                                <asp:TextBox ID="txtSoDienThoai" CssClass="n" runat="server"></asp:TextBox>&nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ValidationGroup="check"
                                    runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="txtSoDienThoai"
                                    SetFocusOnError="True" Text="*"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="RegularExpressionValidator"
                                    ValidationExpression="(\d){7,11}" Text="Số điện thoại chưa đúng" ControlToValidate="txtSoDienThoai"
                                    SetFocusOnError="True" ValidationGroup="check"></asp:RegularExpressionValidator>
                                <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="txtSoDienThoai"
                                    FilterType="Numbers">
                                </cc1:FilteredTextBoxExtender>
                            </td>
                        </tr>
                        <tr>
                            <td class="t tborder_c">
                                Email
                            </td>
                            <td class="i tborder_c">
                                <asp:TextBox ID="txtEmail" CssClass="n" runat="server"></asp:TextBox>&nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ValidationGroup="check"
                                    runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="txtEmail"
                                    SetFocusOnError="True">*</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtEmail"
                                    ErrorMessage="RegularExpressionValidator" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                    SetFocusOnError="True" ValidationGroup="check">Email chưa đúng</asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="t tborder_c">
                                CMND
                            </td>
                            <td class="i tborder_c">
                                <asp:TextBox ID="txtCMND" CssClass="n" runat="server"></asp:TextBox>&nbsp;
                                <asp:RequiredFieldValidator ValidationGroup="check" ControlToValidate="txtCMND" SetFocusOnError="true"
                                    ID="RequiredFieldValidator5" runat="server">*</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="RegularExpressionValidator"
                                    ValidationExpression="(\d){9}" Text="CMND chưa xác thực" ControlToValidate="txtCMND"
                                    SetFocusOnError="True" ValidationGroup="check"></asp:RegularExpressionValidator>
                                <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="txtCMND"
                                    FilterType="Numbers">
                                </cc1:FilteredTextBoxExtender>
                            </td>
                        </tr>
                        <tr>
                            <td class="t tborder_c">
                                Câu hỏi bí mật
                            </td>
                            <td class="i tborder_c">
                                <asp:TextBox ID="txtCauHoi" CssClass="n" runat="server"></asp:TextBox>&nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="RequiredFieldValidator"
                                    ControlToValidate="txtCauHoi" SetFocusOnError="True" ValidationGroup="check">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="t tborder_c">
                                Câu trả lời
                            </td>
                            <td class="i tborder_c">
                                <asp:TextBox ID="txtTraLoi" CssClass="n" runat="server"></asp:TextBox>&nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ErrorMessage="RequiredFieldValidator"
                                    ControlToValidate="txtTraLoi" SetFocusOnError="True" ValidationGroup="check">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="t tborder_c">
                            </td>
                            <td class="i tborder_c">
                                <asp:Button ID="btnSumit" CssClass="send_button_link" Text="Hoàn thành" runat="server"
                                    OnClick="btnSumit_Click" ValidationGroup="check" />
                                <input id="btnReset" type="reset" value="Nhập lại" class="reset_button_link" />
                            </td>
                        </tr>
                    </table>
                </asp:View>
                <asp:View ID="ViewDangKyThanhCong" runat="server">
                    <div class="mytextarea TextCenter">
                        Chúc mừng bạn đã đăng ký thành công<br />
                        Bây giờ bạn có thể đặt hàng online trong hệ thống chúng tôi
                        <br />
                    </div>
                </asp:View>
            </asp:MultiView>
        </div>
        <div class="clear">
        </div>
        <div class="but_center">
        </div>
    </div>
</asp:Content>
